package ui.component {

	import flash.filters.GlowFilter;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;
	
	public class Label extends TextField implements IUIComponent {
		
		private var format:TextFormat;

		public function Label(size:int = 12, color:uint = 0x000000, bold:Boolean = false, align:String = TextFormatAlign.LEFT, border:Boolean = false, borderColor:uint = 0x653011) {
			format = new TextFormat("tahoma", size, color, bold);
			format.align = align;
			selectable = false;
			defaultTextFormat = format;
			if (border) {
				filters = [BORDER_BROWN];
			}
			mouseEnabled = false;
			autoSize = TextFieldAutoSize.LEFT;
		}
		
		public static const BORDER_BROWN:GlowFilter = new GlowFilter(0x653011, 1, 2, 2, 10);
		public static const BORDER_WHITE:GlowFilter = new GlowFilter(0x653011, 1, 2, 2, 10);
		public static const BORDER_BLUE:GlowFilter = new GlowFilter(0x044764, 1, 2, 2, 10);
		
		public function dispose():void {
			
		}
	}
}